<template>
  <div>
  <van-nav-bar
  :title="title"
  left-text="返回"
  left-arrow
  @click-left="onClickLeft"
/>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String
    }
  },
  methods: {
    onClickLeft () {
      this.$router.push('list')
    }
  }

}
</script>

<style scoped lang='less'>
/deep/ .van-nav-bar__content{
      // background-color: rgb(33, 33, 105) !important;
      background-color: skyblue !important;
}
/deep/ .van-icon{
    margin-top: -3.5px;
}
.van-nav-bar{
  position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1;
}
</style>
